package com.yxq.mdt.app.modules.goodsdetail.ui;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentTransaction;

import com.yxq.mdt.app.R;
import com.yxq.mdt.app.base.BaseActivity;

/**
 * 商品评价列表
 */
public class GoodsDetailCommentActivity extends BaseActivity {

    GoodsDetailCommentFragment goodsDetailCommentFragment;

    @Override
    public int getLayoutId() {
        return R.layout.activity_goods_detail_comment;
    }

    @Override
    public void initView() {
        goodsDetailCommentFragment = new GoodsDetailCommentFragment();
        goodsDetailCommentFragment.setArguments(getIntent().getExtras());
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        if (!goodsDetailCommentFragment.isAdded()) {
            transaction.add(R.id.fl_content, goodsDetailCommentFragment);
        }
        transaction.commitAllowingStateLoss();
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {

    }
}
